package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.SysUser;

import java.util.List;
import java.util.Map;

public interface UserService {

    SysUser findUserByUsername(String username);

    Integer findIdByUsername(String username);

    List<Map<String,Object>> showMenuByUserId(Integer userId);
    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(SysUser user, Integer[] roles);

    void deleteById(Integer id);

    SysUser findById(Integer id);

    void edit(SysUser user, Integer[] roles);
}
